class Media
  include DataMapper::Resource
  
  property :id,      Serial
  property :name,    String,        :required => true, :length => 500
  property :text,    Text,          :required => true, :lazy => false
  property :release, Date,          :required => true
  property :url,     Link,          :required => true
  property :owner,   String,        :required => true, :length => 500
  property :gerne,   String,        :required => true, :length => 500
  property :kind,    String,        :required => true, :length => 500
  timestamps :at 
  def get_headers()
  	return properties
	end
  
end
